<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>VectSharp: VectSharp.GradientStops Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="Doxy.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="icon.svg"/></td>
  <td id="projectalign">
   <div id="projectname">VectSharp<span id="projectnumber">&#160;2.6.1</span>
   </div>
   <div id="projectbrief">A light library for C# vector graphics</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.5 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('class_vect_sharp_1_1_gradient_stops.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="#properties">Properties</a> &#124;
<a href="class_vect_sharp_1_1_gradient_stops-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">VectSharp.GradientStops Class Reference</div></div>
</div><!--header-->
<div class="contents">

<p>Represents a read-only list of <a class="el" href="struct_vect_sharp_1_1_gradient_stop.html" title="Represents a colour stop in a gradient.">GradientStop</a>s.   
 <a href="class_vect_sharp_1_1_gradient_stops.html#details">More...</a></p>
<div class="dynheader">
Inheritance diagram for VectSharp.GradientStops:</div>
<div class="dyncontent">
<div class="center"><img src="class_vect_sharp_1_1_gradient_stops__inherit__graph.png" border="0" usemap="#a_vect_sharp_8_gradient_stops_inherit__map" alt="Inheritance graph"/></div>
<map name="a_vect_sharp_8_gradient_stops_inherit__map" id="a_vect_sharp_8_gradient_stops_inherit__map">
<area shape="rect" title="Represents a read&#45;only list of GradientStops." alt="" coords="23,79,193,104"/>
<area shape="rect" title=" " alt="" coords="5,5,211,31"/>
</map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aa39c99f87d5d7373b10c4be0df50ba39"><td class="memItemLeft" align="right" valign="top">IEnumerator&lt; <a class="el" href="struct_vect_sharp_1_1_gradient_stop.html">GradientStop</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_gradient_stops.html#aa39c99f87d5d7373b10c4be0df50ba39">GetEnumerator</a> ()</td></tr>
<tr class="separator:aa39c99f87d5d7373b10c4be0df50ba39"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b636aee07274f408787447a55ccdd11"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_gradient_stops.html#a7b636aee07274f408787447a55ccdd11">GradientStops</a> (IEnumerable&lt; <a class="el" href="struct_vect_sharp_1_1_gradient_stop.html">GradientStop</a> &gt; gradientStops)</td></tr>
<tr class="memdesc:a7b636aee07274f408787447a55ccdd11"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new <a class="el" href="class_vect_sharp_1_1_gradient_stops.html" title="Represents a read-only list of GradientStops.">GradientStops</a> instance containing the specified gradient stops.   <a href="class_vect_sharp_1_1_gradient_stops.html#a7b636aee07274f408787447a55ccdd11">More...</a><br /></td></tr>
<tr class="separator:a7b636aee07274f408787447a55ccdd11"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a37f243948d6eaff791c8ef7420a93fa4"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_gradient_stops.html#a37f243948d6eaff791c8ef7420a93fa4">GradientStops</a> (params <a class="el" href="struct_vect_sharp_1_1_gradient_stop.html">GradientStop</a>[] gradientStops)</td></tr>
<tr class="memdesc:a37f243948d6eaff791c8ef7420a93fa4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new <a class="el" href="class_vect_sharp_1_1_gradient_stops.html" title="Represents a read-only list of GradientStops.">GradientStops</a> instance containing the specified gradient stops.   <a href="class_vect_sharp_1_1_gradient_stops.html#a37f243948d6eaff791c8ef7420a93fa4">More...</a><br /></td></tr>
<tr class="separator:a37f243948d6eaff791c8ef7420a93fa4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa39ad713e31560f60296be658ca9d520"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_gradient_stops.html#aa39ad713e31560f60296be658ca9d520">GetColourAt</a> (double position)</td></tr>
<tr class="memdesc:aa39ad713e31560f60296be658ca9d520"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the colour at a certain position on the gradient.   <a href="class_vect_sharp_1_1_gradient_stops.html#aa39ad713e31560f60296be658ca9d520">More...</a><br /></td></tr>
<tr class="separator:aa39ad713e31560f60296be658ca9d520"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a24a416973048387c2be2123cf632d316"><td class="memItemLeft" align="right" valign="top">static implicit&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_gradient_stops.html#a24a416973048387c2be2123cf632d316">operator Func&lt; double, Colour &gt;</a> (<a class="el" href="class_vect_sharp_1_1_gradient_stops.html">GradientStops</a> stops)</td></tr>
<tr class="memdesc:a24a416973048387c2be2123cf632d316"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert a <a class="el" href="class_vect_sharp_1_1_gradient_stops.html" title="Represents a read-only list of GradientStops.">GradientStops</a> object to a function that assigns a colour to values between 0 and 1.   <a href="class_vect_sharp_1_1_gradient_stops.html#a24a416973048387c2be2123cf632d316">More...</a><br /></td></tr>
<tr class="separator:a24a416973048387c2be2123cf632d316"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-attribs" name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr class="memitem:a3ddc7c6166f37c45e6b41755e91bfcd8"><td class="memItemLeft" align="right" valign="top">static readonly double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_gradient_stops.html#a3ddc7c6166f37c45e6b41755e91bfcd8">StopTolerance</a> = 1e-7</td></tr>
<tr class="memdesc:a3ddc7c6166f37c45e6b41755e91bfcd8"><td class="mdescLeft">&#160;</td><td class="mdescRight">The minimum distance that is enforced between consecutive gradient stops.   <a href="class_vect_sharp_1_1_gradient_stops.html#a3ddc7c6166f37c45e6b41755e91bfcd8">More...</a><br /></td></tr>
<tr class="separator:a3ddc7c6166f37c45e6b41755e91bfcd8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="properties" name="properties"></a>
Properties</h2></td></tr>
<tr class="memitem:a4e21f7fb0641f329d07f4a81e8c2d822"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_vect_sharp_1_1_gradient_stop.html">GradientStop</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_gradient_stops.html#a4e21f7fb0641f329d07f4a81e8c2d822">this[int index]</a><code> [get]</code></td></tr>
<tr class="separator:a4e21f7fb0641f329d07f4a81e8c2d822"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a15c023f5eab2ef5ec444f86de8f30138"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_gradient_stops.html#a15c023f5eab2ef5ec444f86de8f30138">Count</a><code> [get]</code></td></tr>
<tr class="separator:a15c023f5eab2ef5ec444f86de8f30138"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p >Represents a read-only list of <a class="el" href="struct_vect_sharp_1_1_gradient_stop.html" title="Represents a colour stop in a gradient.">GradientStop</a>s.  </p>

<p class="definition">Definition at line <a class="el" href="_brush_8cs_source.html#l00152">152</a> of file <a class="el" href="_brush_8cs_source.html">Brush.cs</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a7b636aee07274f408787447a55ccdd11" name="a7b636aee07274f408787447a55ccdd11"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7b636aee07274f408787447a55ccdd11">&#9670;&#160;</a></span>GradientStops() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">VectSharp.GradientStops.GradientStops </td>
          <td>(</td>
          <td class="paramtype">IEnumerable&lt; <a class="el" href="struct_vect_sharp_1_1_gradient_stop.html">GradientStop</a> &gt;&#160;</td>
          <td class="paramname"><em>gradientStops</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates a new <a class="el" href="class_vect_sharp_1_1_gradient_stops.html" title="Represents a read-only list of GradientStops.">GradientStops</a> instance containing the specified gradient stops.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">gradientStops</td><td>The gradient stops that will be contained in the <a class="el" href="class_vect_sharp_1_1_gradient_stops.html" title="Represents a read-only list of GradientStops.">GradientStops</a> object.</td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_brush_8cs_source.html#l00182">182</a> of file <a class="el" href="_brush_8cs_source.html">Brush.cs</a>.</p>

</div>
</div>
<a id="a37f243948d6eaff791c8ef7420a93fa4" name="a37f243948d6eaff791c8ef7420a93fa4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a37f243948d6eaff791c8ef7420a93fa4">&#9670;&#160;</a></span>GradientStops() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">VectSharp.GradientStops.GradientStops </td>
          <td>(</td>
          <td class="paramtype">params <a class="el" href="struct_vect_sharp_1_1_gradient_stop.html">GradientStop</a>[]&#160;</td>
          <td class="paramname"><em>gradientStops</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates a new <a class="el" href="class_vect_sharp_1_1_gradient_stops.html" title="Represents a read-only list of GradientStops.">GradientStops</a> instance containing the specified gradient stops.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">gradientStops</td><td>The gradient stops that will be contained in the <a class="el" href="class_vect_sharp_1_1_gradient_stops.html" title="Represents a read-only list of GradientStops.">GradientStops</a> object.</td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_brush_8cs_source.html#l00228">228</a> of file <a class="el" href="_brush_8cs_source.html">Brush.cs</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="aa39ad713e31560f60296be658ca9d520" name="aa39ad713e31560f60296be658ca9d520"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa39ad713e31560f60296be658ca9d520">&#9670;&#160;</a></span>GetColourAt()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a> VectSharp.GradientStops.GetColourAt </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>position</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the colour at a certain position on the gradient.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">position</td><td>The position in the gradient (ranging from 0 to 1).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The colour of the gradient at the specified position.</dd></dl>

<p class="definition">Definition at line <a class="el" href="_brush_8cs_source.html#l00238">238</a> of file <a class="el" href="_brush_8cs_source.html">Brush.cs</a>.</p>

</div>
</div>
<a id="aa39c99f87d5d7373b10c4be0df50ba39" name="aa39c99f87d5d7373b10c4be0df50ba39"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa39c99f87d5d7373b10c4be0df50ba39">&#9670;&#160;</a></span>GetEnumerator()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">IEnumerator&lt; <a class="el" href="struct_vect_sharp_1_1_gradient_stop.html">GradientStop</a> &gt; VectSharp.GradientStops.GetEnumerator </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p></p>

<p class="definition">Definition at line <a class="el" href="_brush_8cs_source.html#l00168">168</a> of file <a class="el" href="_brush_8cs_source.html">Brush.cs</a>.</p>

</div>
</div>
<a id="a24a416973048387c2be2123cf632d316" name="a24a416973048387c2be2123cf632d316"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a24a416973048387c2be2123cf632d316">&#9670;&#160;</a></span>operator Func&lt; double, Colour &gt;()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static implicit VectSharp.GradientStops.operator Func&lt; double, <a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a> &gt; </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_vect_sharp_1_1_gradient_stops.html">GradientStops</a>&#160;</td>
          <td class="paramname"><em>stops</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Convert a <a class="el" href="class_vect_sharp_1_1_gradient_stops.html" title="Represents a read-only list of GradientStops.">GradientStops</a> object to a function that assigns a colour to values between 0 and 1.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">stops</td><td>The <a class="el" href="class_vect_sharp_1_1_gradient_stops.html" title="Represents a read-only list of GradientStops.">GradientStops</a> to convert.</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a3ddc7c6166f37c45e6b41755e91bfcd8" name="a3ddc7c6166f37c45e6b41755e91bfcd8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3ddc7c6166f37c45e6b41755e91bfcd8">&#9670;&#160;</a></span>StopTolerance</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">readonly double VectSharp.GradientStops.StopTolerance = 1e-7</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The minimum distance that is enforced between consecutive gradient stops.  </p>

<p class="definition">Definition at line <a class="el" href="_brush_8cs_source.html#l00157">157</a> of file <a class="el" href="_brush_8cs_source.html">Brush.cs</a>.</p>

</div>
</div>
<h2 class="groupheader">Property Documentation</h2>
<a id="a15c023f5eab2ef5ec444f86de8f30138" name="a15c023f5eab2ef5ec444f86de8f30138"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a15c023f5eab2ef5ec444f86de8f30138">&#9670;&#160;</a></span>Count</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int VectSharp.GradientStops.Count</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p></p>

<p class="definition">Definition at line <a class="el" href="_brush_8cs_source.html#l00163">163</a> of file <a class="el" href="_brush_8cs_source.html">Brush.cs</a>.</p>

</div>
</div>
<a id="a4e21f7fb0641f329d07f4a81e8c2d822" name="a4e21f7fb0641f329d07f4a81e8c2d822"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4e21f7fb0641f329d07f4a81e8c2d822">&#9670;&#160;</a></span>this[int index]</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_vect_sharp_1_1_gradient_stop.html">GradientStop</a> VectSharp.GradientStops.this[int index]</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p></p>

<p class="definition">Definition at line <a class="el" href="_brush_8cs_source.html#l00160">160</a> of file <a class="el" href="_brush_8cs_source.html">Brush.cs</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>VectSharp/<a class="el" href="_brush_8cs_source.html">Brush.cs</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespace_vect_sharp.html">VectSharp</a></li><li class="navelem"><a class="el" href="class_vect_sharp_1_1_gradient_stops.html">GradientStops</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5 </li>
  </ul>
</div>
</body>
</html>
